package com.cn.dream_order_server.mapper;

import com.cn.dream_order_server.pojo.OrderOrder;
import com.cn.dream_order_server.pojo.OrderOrderExample;

import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface OrderOrderMapper {
    long countByExample(OrderOrderExample example);

    int deleteByExample(OrderOrderExample example);

    int deleteByPrimaryKey(String orderId);

    int insert(OrderOrder record);

    int insertSelective(OrderOrder record);

    List<OrderOrder> selectByExampleWithBLOBs(OrderOrderExample example);

    List<OrderOrder> selectByExample(OrderOrderExample example);

    OrderOrder selectByPrimaryKey(String orderId);

    int updateByExampleSelective(@Param("record") OrderOrder record, @Param("example") OrderOrderExample example);

    int updateByExampleWithBLOBs(@Param("record") OrderOrder record, @Param("example") OrderOrderExample example);

    int updateByExample(@Param("record") OrderOrder record, @Param("example") OrderOrderExample example);

    int updateByPrimaryKeySelective(OrderOrder record);

    int updateByPrimaryKeyWithBLOBs(OrderOrder record);

    int updateByPrimaryKey(OrderOrder record);


    //根据时间查询当日订单数量
    List<OrderOrder> selectPlaceByTimeDay(Date place_time);
    //根据时间段查询订单数量
    List<OrderOrder> selectPlaceByTime(@Param("beginDate") Date begin, @Param("overDate") Date over);

}